package com.ruoyi.electricity.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electricity.mapper.MultimediaUploadInfoMapper;
import com.ruoyi.electricity.domain.MultimediaUploadInfo;
import com.ruoyi.electricity.service.IMultimediaUploadInfoService;

/**
 * 图片视频上传信息Service业务层处理
 *
 * @author ljw
 * @date 2023-12-17
 */
@Service
public class MultimediaUploadInfoServiceImpl implements IMultimediaUploadInfoService
{
    @Autowired
    private MultimediaUploadInfoMapper multimediaUploadInfoMapper;

    /**
     * 查询图片视频上传信息
     *
     * @param id 图片视频上传信息主键
     * @return 图片视频上传信息
     */
    @Override
    public MultimediaUploadInfo selectMultimediaUploadInfoById(Long id)
    {
        return multimediaUploadInfoMapper.selectMultimediaUploadInfoById(id);
    }

    /**
     * 查询图片视频上传信息列表
     *
     * @param multimediaUploadInfo 图片视频上传信息
     * @return 图片视频上传信息
     */
    @Override
    public List<MultimediaUploadInfo> selectMultimediaUploadInfoList(MultimediaUploadInfo multimediaUploadInfo, Date startTime, Date endTime)
    {
        return multimediaUploadInfoMapper.selectMultimediaUploadInfoList(multimediaUploadInfo, startTime, endTime);
    }

    /**
     * 新增图片视频上传信息
     *
     * @param multimediaUploadInfo 图片视频上传信息
     * @return 结果
     */
    @Override
    public int insertMultimediaUploadInfo(MultimediaUploadInfo multimediaUploadInfo)
    {
        return multimediaUploadInfoMapper.insertMultimediaUploadInfo(multimediaUploadInfo);
    }

    /**
     * 修改图片视频上传信息
     *
     * @param multimediaUploadInfo 图片视频上传信息
     * @return 结果
     */
    @Override
    public int updateMultimediaUploadInfo(MultimediaUploadInfo multimediaUploadInfo)
    {
        return multimediaUploadInfoMapper.updateMultimediaUploadInfo(multimediaUploadInfo);
    }

    /**
     * 批量删除图片视频上传信息
     *
     * @param ids 需要删除的图片视频上传信息主键
     * @return 结果
     */
    @Override
    public int deleteMultimediaUploadInfoByIds(Long[] ids)
    {
        return multimediaUploadInfoMapper.deleteMultimediaUploadInfoByIds(ids);
    }

    /**
     * 删除图片视频上传信息信息
     *
     * @param id 图片视频上传信息主键
     * @return 结果
     */
    @Override
    public int deleteMultimediaUploadInfoById(Long id)
    {
        return multimediaUploadInfoMapper.deleteMultimediaUploadInfoById(id);
    }
}
